package com.qf.dao;

import com.qf.dto.*;
import com.qf.entity.Comment;
import com.qf.entity.ExamSchedule;
import com.qf.entity.Student;
import com.qf.entity.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author qiankunquan
 */
public interface TeacherDao {
    //    教师录入某课程J
    int entering(int courseId, String snumber);

    //    教师录入最终成绩J
    int giveScore(String snumber, int courseId, int score);

    //    教师查看开课班级学生信息J
    List<Teaching> selectTeach(String tnumber);

    //    教师查看评教结果J
    List<Comment> selectComment(String tnumber, int courseId);

    // 查看老师基本信息
    List<TeacherInformation> selectTeacherInfo(int id);
//    老师查看个人监考信息J
    List<ExamSchedule> selectInvigilation(String tnumber);

    //老师查看课程表J
    List<TeacherScheduleDto> selectSchedule(String tnumber);
//    老师开启对应课程的签到 J
    int openSignIn(String tnumber, int courseId);
// 老师关闭对应课程的签到 J
    int closeSignIn(String tnumber, int courseId);
//    老师查询对应课程的签到状态 sql返回值可为String 不能为 boolean int J
    String selectSignIn(String tnumber, int courseId);

    List<TeacherCommentDto> selectTeacher(String status,String snumber);
}
